<?php
if (jfPortableDevice::getConfig('displayLinkToClassicTheme') && !jfPortableDevice::isNativeApp()) {
  $url = $sf_data->getRaw('sf_request')->getUri();
  $url = jfPortableDevice::cleanUrl($url, true);
  $url = htmlspecialchars($url);
	echo link_to(__('Switch to classic theme', null, 'jfPortableDevice'), $url, array('data-ajax' => 'false', 'class' => 'jfPD_classicTheme'));
}
?>

<div data-role="footer" class="jfPD_footer"<?php if (jfPortableDevice::getConfig('fixedFooter')): ?> data-position="fixed" data-tap-toggle="false"<?php endif; ?><?php if (jfPortableDevice::getConfig('jQueryUIThemeFooter')): ?> data-theme="<?php echo jfPortableDevice::getConfig('jQueryUIThemeFooter') ?>"<?php endif; ?>>
  <?php include_partial('jfPortableDevice/tabBar') ?>
</div>